// ClientDiag.cpp : implementation file
//

#include "stdafx.h"
#include "fivechess.h"
#include "ClientDiag.h"
#include <string.h>

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CClientDiag dialog


CClientDiag::CClientDiag(CWnd* pParent /*=NULL*/)
	: CDialog(CClientDiag::IDD, pParent)
{
	//{{AFX_DATA_INIT(CClientDiag)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CClientDiag::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CClientDiag)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CClientDiag, CDialog)
	//{{AFX_MSG_MAP(CClientDiag)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CClientDiag message handlers

void CClientDiag::OnOK() 
{

    m_port = GetDlgItemInt(IDC_EDIT_PORT_C);
	CIPAddressCtrl *ip=(CIPAddressCtrl *)(GetDlgItem(IDC_IPADDRESS));
	ip->GetAddress(m_bIP[0],m_bIP[1],m_bIP[2],m_bIP[3]);
	

	CDialog::OnOK();
}
